Systems and methods for sharing media in a computer network

ABSTRACT

A computerized method for sharing removable storage media in a network, the method comprising associating, in an index entry, a first piece of removable storage media in a first storage device with at least a first storage policy copy and a second storage policy copy; copying, to the first piece of removable storage media, data associated with the first storage policy copy; and copying, to the first piece of removable storage media, data associated with the second storage policy copy.

RELATED APPLICATIONS

The present application is a continuation of U.S. patent application Ser. No. 12/112,326, filed Apr. 30, 2008, which is a continuation of U.S. patent application Ser. No. 11/698,301, filed Jan. 25, 2007, now U.S. Pat. No. 7,380,072, issued May 27, 2008, which is a continuation of U.S. patent application Ser. No. 10/819,097, filed Apr. 5, 2004, now U.S. Pat. No. 7,174,433, issued Feb. 6, 2007, which claims priority to U.S. Provisional Patent Application No. 60/460,234, filed Apr. 3, 2003, each of which is hereby incorporated herein by reference in its entirety.

This application is also related to the following patents and pending applications, each of which is hereby incorporated herein by reference in its entirety:

-   -   U.S. Pat. No. 6,418,478, titled PIPELINED HIGH SPEED DATA         TRANSFER MECHANISM, issued Jul. 9, 2002;     -   U.S. patent application Ser. No. 09/610,738, titled MODULAR         BACKUP AND RETRIEVAL SYSTEM USED IN CONJUNCTION WITH A STORAGE         AREA NETWORK, filed Jul. 6, 2000, now U.S. Pat. No. 7,035,880,         issued Apr. 25, 2006;     -   U.S. patent application Ser. No. 09/774,268, titled LOGICAL VIEW         AND ACCESS TO PHYSICAL STORAGE IN MODULAR DATA AND STORAGE         MANAGEMENT SYSTEM, filed Jan. 30, 2001, now U.S. Pat. No.         6,542,972, issued Apr. 1, 2003; and     -   U.S. Provisional Patent Application No. 60/409,183, titled         DYNAMIC STORAGE DEVICE POOLING IN A COMPUTER SYSTEM, filed Sep.         9, 2002.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosures, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever.

BACKGROUND

1. Field

The invention disclosed herein relates generally to performing storage operations on electronic data in a computer network. More particularly, the present invention relates to selecting, in response to the initiation of a storage operation and according to selection logic, a media management component and a network storage device to perform storage operations on electronic data.

2. Description of the Related Art

Storage of electronic data has evolved through many forms. During the early development of the computer, storage of this data was limited to individual computers. Electronic data was stored in the Random Access Memory (RAM) or some other storage medium such as a hard drive or tape drive that was an actual part of the individual computer.

Later, with the advent of networked computing, storage of electronic data gradually migrated from the individual computer to stand-alone storage devices accessible via a network. These individual network storage devices soon evolved in the form of networkable tape drives, optical libraries, Redundant Arrays of Inexpensive Disks (RAID), CD-ROM jukeboxes, and other devices. Common architectures included drive pools, which generally are logical collections of drives with associated media groups including the tapes or other storage media used by a given drive pool.

Serial, parallel, Small Computer System Interface (SCSI), or other cables, directly connected these stand-alone storage devices to individual computers that were part of a network of other computers such as a Local Area Network (LAN) or a Wide Area Network (WAN). Each individual computer on the network controlled the storage devices that were physically attached to that computer and could also access the storage devices of the other network computers to perform backups, transaction processing, file sharing, and other storage-related operations.

Network Attached Storage (NAS) is another storage scheme using stand-alone storage devices in a LAN or other such network. In NAS, a storage controller computer still “owns” the storage device to the exclusion of other computers on the network, but the SCSI or other cabling directly connecting that storage device to the individual controller or owner computer is eliminated. Instead, storage devices are directly attached to the network itself.

Yet another network storage scheme is modular storage architecture which is more fully described in application Ser. No. 09/610,738, now U.S. Pat. No. 7,035,880, issued Apr. 25, 2006, and application Ser. No. 09/774,268, now U.S. Pat. No. 6,542,972, issued Apr. 1, 2003. An example of such a software application is the GALAXY system, by CommVault Systems of Oceanport, N.J. The GALAXY system is a multi-tiered storage management solution which includes, among other components, a storage manager, one or more media agents, and one or more storage devices. The storage manager directs storage operations of client data to storage devices such magnetic and optical media libraries. Media agents are storage controller computers that serve as intermediary devices managing the flow of data from client information stores to individual storage devices. Each storage device is uniquely associated with a particular media agent and this association is tracked by the storage manager.

A common feature shared by all of the above-described network architectures is the static relationship between storage controller computers and storage devices. In these traditional network architectures, storage devices can each only be connected, virtually or physically, to a single storage controller computer. Only the storage controller computer to which a particular device is physically connected has read/write access to that device. A drive pool and its associated media group, for example, can only be controlled by the computer to which it is directly connected. Therefore, all backup from other storage controller computers needs to be sent via the network before it can be stored on the storage device connected to the first storage controller computer.

At times, storage solutions in some of the above-described network architectures including LAN, NAS, and modular storage systems may cause overloading of network traffic during certain operations associated with use of storage devices on the network. The network cable has a limited amount of bandwidth that must be shared among all the computers on the network. The capacity of most LAN or network cabling is measured in megabits per second (mbps) with 10 mbps and 100 mbps being standard. During common operations such as system backups, transaction processing, file copies, and other similar operations, network traffic often becomes overloaded as hundreds of megabytes (MB) and gigabytes (GB) of information are sent over the network to the associated storage devices. The capacity of the network computers to stream data over the network to the associated storage devices in this manner is greater than the bandwidth capacity of the cabling itself so ordinary network activity and communication slows to a crawl. As long as the storage devices are attached to the LAN or other network, this bandwidth issue remains a problem.

The Storage Area Network (SAN) is a highly-evolved network architecture designed to facilitate transport of electronic data and address this bandwidth issue. SAN architecture requires at least two networks. First, there is the traditional network described above which is typically a LAN or other such network designed to transport ordinary traffic between network computers. Then, there is the SAN itself which is a second network that is attached to the servers of the first network. The SAN is a separate network generally reserved for bandwidth-intensive operations such as backups, transaction processing, and the like also described above. The cabling used in the SAN is usually of much higher bandwidth capacity than that used in the first network such as the LAN and the communication protocols used over the SAN cabling are optimized for bandwidth-intensive traffic. Most importantly, the storage devices used by the network computers for the bandwidth-intensive operations are attached to the SAN rather than the LAN. Thus, when the bandwidth-intensive operations are required, they take place over the SAN and the LAN remains unaffected.

CommVault's proprietary DATAPIPE mechanism further described in U.S. Pat. No. 6,418,478 is used with a SAN to further reduce bandwidth constraints. The DATAPIPE is the transport protocol used to facilitate and optimize electronic data transfers taking place over a Storage Area Network (SAN) as opposed to those taking place over a LAN using NAS.

None of these solutions, however, address the static relationship between individual storage controller computers and individual storage devices. LANs, WANs, and even SANs using a DATAPIPE all require a static relationship between storage controller computer and storage device since each storage device on the network is uniquely owned by a storage controller computer. As discussed, when a storage device in this traditional architecture is assigned to a storage controller computer, that storage controller computer owns the device indefinitely and to the exclusion of other computers on the network. This is also true with both logical and physical storage volumes. One computer cannot control the drive pool and media group being that is controlled by another. Requests to store and retrieve data from such a drive pool and media group would have to first pass through the controlling computer. Such a static relationship between storage controller computer and storage device often leads to an inefficient use of resources.

For example, if each storage controller computer needs access to two storage devices and there are five storage controller computers in the network, then a total of ten storage devices will be required. The actual amount of work each of the ten storage devices performs might be much less than the workload capacity of each storage device. Such underutilization of storage device resources cannot be solved when a static relationship is required between storage device and storage controller computer.

If the static relationship were dynamic, however, and storage controller computers could actually share devices, then this underutilization can be addressed. Assuming in the above example that each of the five storage controller computers only uses ten percent of each device's workload capacity, then if all the storage controller computers could actually share the same two storage devices, eight of the storage devices could be eliminated without loss of performance or capability.

Furthermore, none of these existing solutions provide access to storage devices in the event of a storage controller failure. For example, if a storage controller computer were unavailable due to a hardware or software malfunction, then other computers on the network would not be able to access data stored on any storage device associated with the storage controller computer. Until the storage controller computer was brought back online, the data contained on any associated storage device would be effectively unrecoverable. If the association between the storage controller computer and a storage device were not static, however, then another storage controller computer could bypass the unavailable storage controller computer and access the storage device to retrieve the data.

There is thus also a need for a system which enables dynamic association of storage controller computers and storage devices

SUMMARY

The present invention addresses, among other things, the problems discussed above performing storage operations on electronic data in a computer network. In accordance with some aspects of the present invention, computerized methods are provided for sharing removable storage media in a network, comprising associating, in an index entry, a first piece of removable storage media in a first storage device with at least a first storage policy copy and a second storage policy copy; copying, to the first piece of removable storage media, data associated with the first storage policy copy; and copying, to the first piece of removable storage media, data associated with the second storage policy copy.

In some embodiments, methods further include associating, in an index entry, a second piece of removable storage media in a second storage device with at least the first storage policy copy and the second storage policy copy; copying, to the second piece of removable storage media, data associated with the first storage policy copy; and copying, to the first piece of removable storage media, data associated with the second storage policy copy. In some embodiments, methods further associate, in an index entry, the first piece of removable storage media with a first media group and a second media group; and associate, in an index entry, the second piece of removable storage media with the first media group and the second media group.

In one embodiment, a system for sharing removable storage media in a network comprises: a first storage device containing a first piece of removable storage media; an index entry associating the first piece of removable storage media with at least a first storage policy copy and a second storage policy copy; and a processor, wherein the processor is programmed to: copy, to the first piece of removable storage media, data associated with the first storage policy copy; and copy, to the first piece of removable storage media, data associated with the second storage policy copy. In varying embodiments, the processor comprises a storage management component processor, a media management component processor, or a media agent processor. In some embodiments, the system includes a second storage device containing a second piece of removable storage media; an index entry associating the second piece of removable storage media with at least the first storage policy copy and the second storage policy copy; and wherein the processor is programmed to: copy, to the second piece of removable storage media, data associated with the first storage policy copy; and copy, to the second piece of removable storage media, data associated with the second storage policy copy.

In some embodiments, the index entry comprises a storage management component index cache entry, a media management component index cache entry, or a media agent index cache entry. In some embodiments, the piece of removable storage media comprises a piece of magnetic storage media, a tape, a piece of optical storage media, or a CD-ROM.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention is illustrated in the figures of the accompanying drawings which are meant to be exemplary and not limiting, in which like references are intended to refer to like or corresponding parts, and in which:

FIG. 1 is a block diagram of a network architecture for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention;

FIG. 2 is a block diagram of an exemplary tape library storage device for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention; and

FIG. 3A is a block diagram of an exemplary magnetic media storage device for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention;

FIG. 3B illustrates an exemplary index associating multiple storage policies with the same storage media according to an embodiment of the invention;

FIG. 4 is a flow chart of a method for performing storage operations on electronic data in a computer network according to an embodiment of the invention;

FIG. 5 is a flow chart of a method to archive electronic data in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention;

FIG. 6 is a flow chart of a method for restoring or auxiliary copying electronic data in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention;

FIG. 7 is a flow chart of a method to restore a storage index in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention; and

FIG. 8 is a flow diagram of a method to perform dynamic volume sharing according to one embodiment of the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

With reference to FIGS. 1 through 7, embodiments of the invention are presented. FIG. 1 presents a block diagram of a network architecture for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. As shown, the system includes a storage manager 100 and one or more of the following: a client 85, an information store 90, a data agent 95, a media agent 105, an index cache 110, and a storage device 115. The system and elements thereof are exemplary of a three-tier backup system such as the CommVault GALAXY backup system, available from CommVault Systems, Inc. of Oceanport, N.J., and further described in U.S. patent application Ser. No. 09/610,738, now U.S. Pat. No. 7,035,880, issued Apr. 25, 2006, which is incorporated herein by reference in its entirety.

A data agent 95 is generally a software module that is generally responsible for archiving, migrating, and recovering data of a client computer 85 stored in an information store 90 or other memory location. Each client computer 85 has at least one data agent 95 and the system can support many client computers 85. The system provides a plurality of data agents 95 each of which is intended to backup, migrate, and recover data associated with a different application. For example, different individual data agents 95 may be designed to handle MICROSOFT EXCHANGE data, LOTUS NOTES data, MICROSOFT WINDOWS 2000 file system data, MICROSOFT ACTIVE DIRECTORY objects data, and other types of data known in the art.

If a client computer 85 has two or more types of data, one data agent 95 is generally required for each data type to archive, migrate, and restore the client computer 85 data. For example, to backup, migrate, and restore all of the data on a MICROSOFT EXCHANGE 2000 server, the client computer 85 would use one MICROSOFT EXCHANGE 2000 mailbox data agent 95 to backup the EXCHANGE 2000 mailboxes, one MICROSOFT EXCHANGE 2000 Database data agent 95 to backup the EXCHANGE 2000 databases, one MICROSOFT EXCHANGE 2000 public folder data agent 95 to backup the Exchange 2000™ Public Folders, and one MICROSOFT WINDOWS 2000 file system data agent 95 to backup the client computer's 85 file system. These data agents 95 would be treated as four separate data agents 95 by the system even though they reside on the same client computer 85.

The storage manager 100 is generally a software module or application that coordinates and controls the system. The storage manager 100 communicates with all elements of the system including client computers 85, data agents 95, media agents 105, and storage devices 115, to initiate and manage system backups, migrations, and recoveries.

A media agent 105 is generally a software module that conducts data, as directed by the storage manager 100, between the client computer 85 and one or more storage devices 115 such as a tape library, a magnetic media storage device, an optical media storage device, or other storage device. The media agent 105 is communicatively coupled with and controls the storage device 115. For example, the media agent 105 might instruct the storage device 115 to use a robotic arm or other means to load or eject a media cartridge, and to archive, migrate, or restore application specific data. The media agent 105 generally communicates with the storage device 115 via a local bus such as a SCSI adaptor. In some embodiments, the storage device 115 is communicatively coupled to the data agent 105 via a storage area network (“SAN”).

Each media agent 105 maintain an index cache 110 which stores index data the system generates during backup, migration, and restore storage operations as further described herein. For example, storage operations for MICROSOFT EXCHANGE data generate index data. Index data provides the system with an efficient mechanism for locating user files for recovery operations. This index data is generally stored with the data backed up to the storage device 115, and the media agent 105 that controls the storage operation also writes an additional copy of the index data to its index cache 110. The data in the media agent 105 index cache 110 is thus readily available to the system for use in storage operations and other activities without having to be first retrieved from the storage device 115.

The storage manager 100 also maintains an index cache 110. Index data is also used to indicate logical associations between components of the system, user preferences, management tasks, and other useful data. For example, the storage manager 100 might use its index cache 110 to track logical associations between media agents 105 and storage devices 115.

Index caches 110 typically reside on their corresponding storage component's hard disk or other fixed storage device. Like any cache, the index cache 110 has finite capacity and the amount of index data that can be maintained directly corresponds to the size of that portion of the disk that is allocated to the index cache 110. In one embodiment, the system manages the index cache 110 on a least recently used (“LRU”) basis as known in the art. When the capacity of the index cache 110 is reached, the system overwrites those files in the index cache 110 that have been least recently accessed with the new index data. In some embodiments, before data in the index cache 110 is overwritten, the data is copied to an index cache 110 copy in a storage device 115. If a recovery operation requires data that is no longer stored in the index cache 110, such as in the case of a cache miss, the system recovers the index data from the index cache 110 copy stored in the storage device 115.

In some embodiments, components of the system may reside and execute on the same computer. In some embodiments, a client computer 85 component such as a data agent 95, a media agent 105, or a storage manager 100 coordinates and directs local archiving, migration, and retrieval application functions as further described in U.S. patent application Ser. No. 09/610,738, now U.S. Pat. No. 7,035,880, issued Apr. 25, 2006. This client computer 85 component can function independently or together with other similar client computer 85 components.

FIG. 2 presents a block diagram of an exemplary tape library storage device 120 for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. The tape library storage device 120 contains tapes 140 and drives 125, 130, and 135. The tapes 140 store electronic data containing backups of application data, user preferences, system information, and other useful information known in the art. Drives 125, 130, and 135 are used to store and retrieve electronic data from the tapes 140. In some embodiments, drives 125, 130, and 135 function as a drive pool, as further described in U.S. Provisional Patent Application No. 60/409,183, filed Sep. 9, 2002, which is hereby incorporated herein by reference in its entirety. A drive pool is generally a logical concept associated with a storage policy. Storage policies representing storage patterns and preferences are more fully discussed in U.S. patent application Ser. No. 09/774,268, now U.S. Pat. No. 6,542,972, issued Apr. 1, 2003, which is hereby incorporated by reference herein in its entirety.

The drive pool is identified by a set of drives within a tape library storage device 120 as pointed to by one or more media agents 105. For example, a drive pool known as DP1 consisting of drives 125 and 130 in tape library 120 known as LIB1 could be associated by a storage policy with a first media agent 105 MA1 in an index cache 110 entry as follows: LIBI/MA1/DP1. A second drive pool consisting of drives 130, 135, and 140 within the tape library storage device 120 associated with the same media agent 105 might be expressed in the index cache 110 as follows: LIB1/MA1/DP2.

Previously, however, drive pools had a static association with a particular media agent 105. A drive pool associated with a first media agent 105 could not be logically associated with a second drive pool associated with a second media agent 105. An index cache 110 entry associating a drive pool with a media agent 105 and other system components might, for example, specify a media library or media group, a media agent, and a drive pool. Only one of each component could be specified in a particular index cache 110 entry. Thus, such drive pools were logically exclusive and separate entries in an index cache 110 entry for a storage policy and could be logically represented as:

$❘\frac{{LIB}\;{1/{MA}}\;{1/{DP}}\; 1}{{LIB}\;{1/{MA}}\;{2/{DP}}\; 2}$

As further described herein, the present invention permits logical association of drive pools associated with different media agents 105. Multiple drive pools, media agents, and other system components can be associated in a single index cache 110 entry. Thus, for example, an index cache 110 entry for a storage policy, according to the present invention, may combine the two previous entries instead and thus be logically represented as:

LIB1/MA1/DP1/DP2 LIB1/MA2/DP2/DP1

In addition and as further described herein, tapes 140 are associated by the system with drive pools or storage policies, and not with individual drives 125, 130, and 135. The recording format used to archive electronic data is a property of both its media group and its associated drive pool. A media group is a collection of tapes 140 or other storage media assigned to a specific storage policy. The media group dynamically points to different drive pools, even to those with different recording formats since the system updates the recording format of the media group in a media group table stored in the index cache 110 of the storage manager 100. Previously, tapes 140 associated with drive pools could share individual drives 125, 130, and 135, but tapes 140 associated with each drive pool remained logically separate by, among other factors, media groups. Thus, a given set of tapes 140 associated with a particular drive pool and storing data associated with a first storage policy copy could not also store data from a second storage policy copy. An index cache 110 entry would thus associate different tape sets 140 with different media agents 105, storage policies, drive pools, and other system components. For example, two different tape sets might be associated in two index cache 110 entries as follows:

$❘\frac{{{storagepolicy}\; 1}:{{{mediaagent}\; 1}:{{{drivepool}\; 1}:{{tapeset}\; 1}}}}{{{storagepolicy}\; 2}:{{{mediaagent}\; 2}:{{{drivepool}\; 2}:{{tapeset}\; 2}}}}$

All components are thus uniquely associated and require separate index cache 110 entries.

By contrast, the present invention, as further described herein, permits data associated with a particular storage policy copy to be stored on and share tapes 140, and other pieces or removable media such as optical discs, associated with and sharing one or more drive pools or storage policy copies. Data from each storage policy copy is appended to tapes 140 shared by other storage policy copies. Thus, a storage policy copy is shared between many media agents 105 in a dynamic drive pooling setting with tapes 140 also being shared by the different media agents 105 and storage policies. Tapes 140 can be located in any storage device 115 and tapes 140 for a given storage policy copy can even be spread across multiple storage devices 115. Thus, an index cache entry would associate multiple tape sets 140 with multiple media agents, storage policies, drive pools, and other system components. For example, two different tape sets from the previous example of index entries might be associated in a single index cache 110 entry as follows:

storage policy1:media agent1:drive pool1:tape set1:tapeset2 storage policy2:media agent2:drive pool2:tape set1:tape set2

In addition to tape sets 140, a single index cache 110 entry can also specify and associate multiple media agents 105, storage policies, drive pools, network pathways, and other components.

Similarly, different media agents 105 and storage policies can also be associated with the same volumes on magnetic media. For example, turning to FIG. 3A, a block diagram is presented of an exemplary magnetic media storage device for a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. A magnetic media storage device 150, such as a hard disk, is shown. The magnetic media storage device 150 is divided into two volumes 155 and 160 which are associated with a first media agent 165 and a second media agent 170. Previously, each volume on a magnetic media storage device 150 maintained a static relationship with a given media agent 105. For example, if the first volume 155 was associated with the first media agent 165, then the second media agent 170 would only be able to conduct storage operations with the first volume 155 by passing any associated electronic data through the first media agent 165.

The present invention, however, permits media agents 105 to share the same volume(s) on a given magnetic storage device. Thus, as further described herein, a first media agent 105 can perform, on a given magnetic media volume, storage operations on data associated with a first storage policy copy, and a second media agent can perform, on the same magnetic media volume, storage operations on different data associated with a second storage policy copy. For example, media agent 165 and 170 can both perform storage operations on the first volume 155 or the second volume 160.

FIG. 3B illustrates an index 161 corresponding to the system of FIG. 3A, according to an embodiment of the invention. In particular, the illustrated index 161 associates multiple storage policies (storage policy1 and storage policy2) and multiple media agents (media agent 165 and media agent 170) with the same storage media (storage device 150).

FIG. 4 presents a flow chart of a method for performing storage operations on electronic data in a computer network according to an embodiment of the invention. Selection of desired storage components for storage operations is performed dynamically. The system initiates a storage operation, step 175, in response to a scheduled procedure or as directed by a user. For example, the system might initiate a backup operation or a restore operation at a specific time of day or in response to a certain threshold being passed as specified in a storage policy. The system selects a media agent 105 according to selection logic further described herein, step 180. Some examples of selection logic include the ability to conduct a LAN-free storage operation, such as using a SAN, and the desire to optimize storage operations via load balancing. For example, an index entry in the storage manager 100 index cache 110 might associate certain media agents 105, storage devices 115, or other components with LAN-free storage operations either via user input, network topology detection algorithms known in the art, or other methods. As another example, the system might select a free media agent 105 to optimize storage operations via load balancing when a default media agent 105 or other media agent 105 specified in a storage policy is already performing other storage operations or otherwise occupied. The system also selects an appropriate drive pool in a network storage device according to selection logic further described herein, step 185. Once the system has selected an appropriate media agent and drive pool, the storage operation is performed, step 190 using the selected storage components.

FIG. 5 presents a flow chart of a method to archive electronic data in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. More specifically, FIG. 5 presents a method for dynamically selecting a drive pool according to an embodiment of the invention. The system makes a call to reserve one or more archive streams, step 195. Archive streams are generally data paths with permit storage operations to be performed in parallel on electronic data. An archive stream generally has a one-to-one correlation with a media group, such as a media agent 105 and storage device 115.

Thus, according to one embodiment of the invention, the number of archive streams allowed on a storage policy is the sum of all drives in all available drive pools. For example, a system with three drive pools composed of ten total drives could reserve ten archive streams to copy data to each of the drives simultaneously thus increasing storage efficiency and achieving other useful goals. In one embodiment, the system uses the number of drives in a selected drive pool as the default number of streams to reserve. In an alternate embodiment, the system uses magnetic storage libraries as storage devices 115 instead of tape libraries containing drives. Here, the maximum number of streams would equal the number of readers and writers on all mount paths to the magnetic storage libraries.

The system selects one or more appropriate storage locations for the data to be archived, step 200. In some embodiments, a resource manager module associated with the storage manager 100 selects the storage location(s). For example, a resource manager determines the appropriate storage device 115, media agent 105, and drive pool combination based on the pool of available storage network components and other criteria.

Additional criteria used in the selection process generally consider improving efficiency of the storage operation to be performed. Load balancing, for example, is one exemplary consideration. The system may contain a given number of drives, but some of those drives may be used by other jobs and thus unavailable. The system thus selects from among available drives as one selection criterion. Alternatively, the network path to a particular storage component may be experiencing heavy traffic and thus a less trafficked path offering greater bandwidth may be selected as desirable.

Another exemplary selection criterion is whether selection of a given drive or set of drives would enable LAN-free or auxiliary archiving. For example, in a given network, certain drives might be accessible via a SAN or other alternate storage route which would reduce the network traffic caused by an archiving operation. Preference, is thus given to selection of these drives over drives which would instead increase the network load.

Yet another exemplary selection criterion is in the case of a storage component failover situation. For example, where an entire media agent 105 or storage device 115 as a whole is offline or if a certain number of drives in a storage device are offline, then the system, in some embodiments, dynamically selects an alternate media agent 105 or drive pool to perform storage operations. In some embodiments, the alternate media agent 105 or drive pool in the case of failover is specified according to preferences associated with a storage policy. For example, a storage policy may contain a list of failover candidates or selection logic, as described herein, for selecting a storage location to serve as a failover candidate. In some embodiments, the failover candidates are expressed as a triplet indicating the media agent 105, the storage device 115, and, provided the storage device is not a magnetic media storage device 150, the drive pool. Thus, the triplet “LIB1/MA2/DP1” might be used to represent a failover candidate storage path using media agent 115 MA2, storage device 115 LIB1, and drive pool DP1. In other embodiments, a user specifies the alternate storage device 115, media agent 105, or drive pool directly.

The system reserves the selected storage candidates, step 205, and returns the storage IDs of successful reservations to the storage manager 100, step 210. In some embodiments, the storage IDs are unique identifiers enabling components of the system to identify and communicate with the storage candidates. For example, in some embodiments, the storage IDs comprise a unique component name coupled with a network path such as a Uniform Naming Convention (“UNC”) entry. The storage IDs of the successful reservations are used to update a media group table stored in the storage manager 100 index cache 110 or other similar locations accessible to components of the system, step 215. The reserved components are thus accessible to other components of the system to perform the archive operation or other storage operations.

FIG. 6 presents a flow chart of a method to restore or auxiliary copy electronic data in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. A restore or auxiliary copy operation is initiated and the electronic data to be restored or copied is identified, step 220.

The system locates the media on which the electronic data to be restored or copied is stored, step 225. Thus, index data stored at the storage manager 100, a media agent 105, or another location is consulted to determine the media ID where the archive file of the electronic data starts. In some embodiments, the system consults a slot map table contained in the index cache 110 to determine the media ID where the archive file of the electronic data starts.

The system determines the library/media agent/drive pool combination for the source tape storing the electronic data being restored or copied, step 230. Alternatively, the system determines the library/media agent/magnetic storage media volume combination for the electronic data being restored or copied. As previously described, in some embodiments the system determines the media agent 105 according to user preferences, selection logic for increasing network efficiency, or other factors. For example, if the electronic data to be restored or copied is located on a particular tape 140 in a given storage device 115, there may be a finite set of media agents 105 that are associated with the storage device 115 due to network pathways, component failures, user preferences, or other reasons.

The system establishes a network connection to the selected media agent 105 and other components, step 235. In some embodiments, the system establishes a high speed connection, such as a DATAPIPE connection manufactured by CommVault Systems, and further described in U.S. Pat. No. 6,418,478 which is hereby incorporated herein by reference in its entirety. Electronic data is thus transferred over the established connection from the storage device 115 to its intended destination such as a network client 85, an information store 90, or other network component, step 240.

In some embodiments, the entire archive file is generally created by a single attempt of backup and is contained within and accessible to the same media agent 105. Thus, a media agent 105 is identified only when initially opening the archive file. When media spanning occurs in the middle of the archive file, however, such as in the case of a file spanning multiple tapes 140 or volumes, the subsequent pieces of media containing the remaining electronic data must be located and requested, step 245. In the case of media spanning, control thus returns to step 225 to locate the additional media and continue the storage operation.

In some embodiments, the initially selected media agent 105 is first queried to determine whether it is associated with the additional media, and if so, to continue the storage operation. If the initially selected media agent 105 is not associated with the additional media, the system queries the other media agents 105 in the network and attempts to locate the additional media. For example, the system may search index caches 110 associated with the system media agents 105 to locate the additional media. Alternatively, if the system cannot locate the additional media, the user is prompted to manually import or otherwise make available the media holding the additional electronic data required to complete the storage operation.

FIG. 7 presents a flow chart of a method to restore a storage index in a system to perform storage operations on electronic data in a computer network according to an embodiment of the invention. In larger storage networks, scalability problems sometimes occasion the loss of index cache 110 directories from media agents 105. For example, in a network with many media agents 105 and a great deal of storage operations being performed, media agents 105 may load and unload different index caches 110 depending on the electronic data subject to the storage operations being performed. Such loss of an index cache 110 directory from the memory of a media agent 105 requires that the index cache 110 directory be reloaded from stored media such as tapes 140 in a storage device. Reloading an index in this manner, however, often places strain on the network drives, and also results in high system resource usage through the instantiation of related processes and threads such as, for example, ifind, createindex, pipelines, and other actions. For example, when a media agent 105 performs a storage operation, the media agent index cache 110 is updated using a createindex process to indicate any new network pathways, changes to the files system, version information, and other information useful in performing storage operations. The index cache 110 directory must first be restored before the createindex process can be run to reflect these changes. The present invention, thus provides, in some embodiments, a method for efficiently restoring an index cache 110 directory.

The system determines whether there is an index in the cache 110 of a selected media agent, step 255. The system may query media agents 105 directly to determine if there is a copy of the index in a local cache 110. Alternatively, the system may look for the index in other locations, such as in a shared index system as further described herein.

If the index is not in the cache 110, then the system determines the media ID of the archive file containing the index by consulting reference tables stored in the media agent 105 or the storage manager 100 index cache 110, step 260. These tables identify the location of the index file and identify the actual storage media holding the index file such as a particular tape 140, volume 155, or other storage media. In the case of a tape 140 or other similar removable storage media, the system reserves a drive for accessing the media, step 265, and performs a storage operation to restore the index to the local cache 110 of the selected media agent 105, step 270. In some embodiments, such as in the case of multiple media agents 105 having access to the index, preference is given to a LAN-free or otherwise preferred media agent 105. This is advantageous in the case of backups since the createindex has a high chance of being on the same machine as the tail of the pipeline.

Once the system determines that the index is in the local cache 110 of the selected media agent 105, the index is updated or otherwise accessed, such as through a createindex process, to perform the storage operation at hand, step 275. The storage group table is updated to reflect the storage operations performed, step 280.

In some embodiments, the system employs a shared index cache 110 location. A shared index might be employed, for example, to make the index available to all media agents 105 that may need to participate in a storage operation. Multiple media agents 105, for example, might be candidates for load balancing or failover operations, and all need access to the network path of the index so that the index will be available to each of them. Otherwise, extra index restores would be required when different media agents 105 were used for subsequent storage operations. Thus, in some embodiments, the index cache location is indicated by a UNC path universally accessible via a username and password.

Each media agent 105 is also associated with a unique username and password that permit component authentication, access control, and other similar functions. The username, password, and UNC path to the shared index location is stored in memory associated with each media agent 105. In some embodiments, an indexing module of the media agent 105 employs user impersonation before accessing the index cache.

In an alternate embodiment, the system employs a shared index cache 110 in which a pool of network UNC paths is designated for each media agent 105 as a secondary storage area for the index. At the end of each backup, a media agent 105 copies the index to this secondary area which is accessible to all media agents 105 in the pool. Thus, when a media agent 105 requires the index, the media agent 105 queries both its local cache 110 and the pool of UNC paths to locate the correct index. If the index is located in the secondary area and not in the local cache 105, then the index is copied to the local area for immediate use. Upon completion of a storage operation, such as a backup or a restore, the index is copied back to the shared area so that other media agents 105 and processes can access the index.

In some embodiments, the system determines which media agent 105, for a given browse of a client 85 at a point in time, is most likely to already to have a useable index version already in its local cache 110. For example, in some embodiments, the storage manager 100 tracks which media agent 105 performed the last storage operation for a particular client 85. A media agent 105 is selected for a client 85 browse at time T such that the last backup in the full backup cycle at time>=T was done with indexing at that media agent 105.

FIG. 8 presents a flow diagram showing how dynamic volume sharing is accomplished according to one embodiment of the invention. A client application or other application initiates a request to the storage manager 100 to perform a storage operation on electronic data on a storage device 115, such as a magnetic media storage device 150, in the network, and the storage manager 100 processes this request by requesting access to the volume on which the data is storage, step 285. When a client computer 85 is configured, client data that is to be subject to storage operations is associated with a particular media agent 115. When that client data is stored or retrieved in the future, the client computer 85 passes storage operation requests on to the associated media agent 115. The media agent 115 associates this client data with a particular storage media, such as a volume on a magnetic media storage device 150. Using dynamic volume sharing, one or more media agents can store and retrieve data among multiple volumes spanning multiple magnetic media storage devices 150.

When the media sharing request is received, the storage manager 100 verifies that a storage device 115 is available that can be switched to accommodate the request, step 290. The storage manager 100 tracks storage device 115 availability in the storage manager index cache 110 populated with information regarding available storage devices 115 and their respective media agent 105 controllers. Access paths across the network to media agents 105 and then on to appurtenant storage devices 115 are also stored in the storage manager index cache 110.

Upon identifying an appropriate storage device 115, the storage manager 100 directs the media agent 105 controlling the storage device 115 to go into a deactivated state with respect to that storage device, step 295. Even though, in some embodiments, there are multiple media agents executing on various hosts for the same storage device 115, the relationship is static and only one of them can control a storage device 115 at a given instant. The other media agents 105 are said to be in a deactivated state with respect to that storage device 115.

The deactivated media agents 105 run a listening process waiting for a message from the storage manager 100 directing them to become active with respect to a storage device 115. Once the first media agent 105 has been deactivated with respect to the storage device 115, the storage manager communicates to the listening process of a second media agent 105 on which the storage device 115 will be mounted to change from a deactivated state to an activated state with respect to the storage device 115, step 300. At this point the storage manger 100 also updates the storage manager cache 110 to reflect that control of the storage device 115 has been shifted from the first media agent 105 to the second media agent 105, and that the first media agent is now deactivated and that the second media agent is now activated with respect to that storage device, step 305.

The second media agent 105 communicates with the storage device 115 and executes procedures necessary to mount storage device 115 and any associated volumes to the second media agent, step 310. In some embodiments, the second media agent 105 mounts one or more of the volumes associated with the storage device 115, and volumes in the same storage device 115 not mounted by the second media agent 105 may be mounted or otherwise associated with other media agents 105. Once the mount is performed the storage device 150 and its associated volumes 150 are logically connected to the second media agent 105, and this access path is stored by the second media agent 105 in its index cache 110, step 315. The media agent 105 stores the access path to the storage device 115 in the media agent index cache 110 because a storage device 115 connected to multiple media agents 105 may have multiple access paths. Mounting the storage device 115 to the media agent 105 and the resultant access path produced is in large part related to the hardware configuration of the media agent 105. The media agent 105 is generally best-suited to store and delegate management of the access path to the storage device that it controls. In some alternate embodiments, the storage manager 100 stores and tracks the individual hardware configuration of all the network media agents 105 in the storage manager index cache 110 and then passes the resultant access paths to the network storage devices 115 on to the media agents 105 when necessary. In other embodiments, media agent 105 hardware configurations and resultant access paths to the network storage devices 115 are stored in a shared index location as further described herein.

Once the media agent 105 has completed the mount of the storage device 115 (and any associated volumes) and stored the access path to the storage device 115 in its own media agent index cache 110 or other location, then the access path to the storage device 115 is returned by the media agent 105 to the storage manager 100 where it is also stored in the storage manager index cache 110 for future recall, step 320. While media agents 115 generally communicate with storage devices 115 and the storage manager 100, the storage manager 100 generally communicates with client applications. In some embodiments, the storage manager 100 returns the storage device access path to a client application or other application and initiates a storage operation as appropriate, step 325.

Systems and modules described herein may comprise software, firmware, hardware, or any combination(s) of software, firmware, or hardware suitable for the purposes described herein. Software and other modules may reside on servers, workstations, personal computers, computerized tablets, personal digital assistants (PDAs), and other devices suitable for the purposes described herein. Software and other modules may be accessible via local memory, via a network, via a browser or other application in an application service provider (ASP) context, or via other means suitable for the purposes described herein. Data structures described herein may comprise computer files, variables, programming arrays, programming structures, or any electronic information storage schemes or methods, or any combinations thereof, suitable for the purposes described herein. User interface elements described herein may comprise elements from graphical user interfaces, command line interfaces, and other interfaces suitable for the purposes described herein. Screenshots presented and described herein can be displayed differently as known in the art to input, access, change, manipulate, modify, alter, and work with information.

While the invention has been described and illustrated in connection with preferred embodiments, many variations and modifications as will be evident to those skilled in this art may be made without departing from the spirit and scope of the invention, and the invention is thus not to be limited to the precise details of methodology or construction set forth above as such variations and modification are intended to be included within the scope of the invention. 

1. A method for dynamically sharing a media volume in a network, the method comprising: instructing, in response to a volume sharing request, removal of a first association between a first media management module and a media volume; determining with one or more computer processors an availability of a second media management module different than the first media management module; instructing formation of a second association between the second media management module and the media volume, wherein removal of the first association deactivates the first media management module and wherein formation of the second association activates the second media management module so that the control of the media volume shifts to the second media management module; storing in a first index with one or more computer processors a first access path to the media volume, the first index being maintained by the second media management module; and storing in a second index with one or more computer processors a second access path to the media volume, the second index being maintained by a storage manager module executing on a computing device.
 2. The method of claim 1, wherein said determining is performed by the storage manager module.
 3. The method of claim 2, wherein said acts of instructing are performed by the storage manager module.
 4. The method of claim 1, wherein said determining the availability comprises determining a workload of the second media management module.
 5. The method of claim 1, wherein said volume sharing request is initiated by the storage manager module.
 6. The method of claim 1, wherein said volume sharing request is initiated by a client device in network communication with the storage manager module.
 7. The method of claim 1, wherein said instructing removal of the first association comprises directing the first media management module to assume a deactivated state with respect to the media volume.
 8. The method of claim 7, wherein said directing the first media management module comprises directing the first media management module to execute a listening process for detecting an instruction to reassume an activated state.
 9. The method of claim 1, wherein said first and second associations allow access by, respectively, the first and second media management modules to the same data stored in the media volume.
 10. A system for dynamically sharing a media volume in a network, the system comprising: a storage manager module executing on a computing device; a first media management module communicatively coupled to a media volume and the storage manager module; a second media management module communicatively coupled to the media volume and the storage manager module; wherein the storage manager module is programmed to: instruct the termination of a first association between the first media management module and the media volume, and instruct the formation of a second association between the second media management module and the media volume; a first index associated with the second media management module, the first index storing data relating to the second association between the second media management module and the media volume; and a second index associated with the storage manager module, the second index storing data relating to the second association between the second media management module and the media volume.
 11. The system of claim 10, wherein the storage manager is further configured to determine an availability of the second media management module.
 12. The system of claim 11, wherein the storage manager is configured to instruct the formation of the second association according to said availability.
 13. The system of claim 11, wherein said availability is indicative of an available bandwidth of a network path to the second media management module.
 14. The system of claim 10, wherein the second association between the second media management module and the media volume comprises at least one of an index entry and an access path.
 15. The system of claim 10, wherein the media volume is on a magnetic media.
 16. The system of claim 10, wherein the first and second media management modules are coupled to the media volume such that only one of the first and second media management modules is configured to control the media volume at a particular time.
 17. The system of claim 10, wherein the first and second media management modules execute on different computing devices.
 18. The system of claim 10, wherein the media volume is part of a storage area network (SAN).
 19. A system for dynamically sharing media in a network, the system comprising: first means for (i) instructing, in response to a volume sharing request, removal of a first association between a first media management module and a storage media, (ii) determining an availability of a second media management module different than the first media management module, and (iii) instructing formation of a second association between the second media management module and the storage media; second means for storing a first access path to the storage media, said means for storing the first access path being maintained by said second media management module; and third means for storing a second access path to the storage media, said means for storing the second access path being maintained by said first means.
 20. The system of claim 19, wherein said first means, said first media management module and said second media management module execute on separate computing devices on a network. 